<template>
	<view class="request-loading-view" v-if="show">
		<view class="loading-view">
			<view class="text" style="margin-top: 35rpx">您确定放弃么？</view>
			<view class="text">如果放弃则判定为输</view>

			<view class="footer">
				<view class="btn leftBtn" @click="submit(false)">
					取消
				</view>
				<view class="btn" @click="submit(true)">
					确定
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: ['show'],
		data() {
			return {};
		},
		methods:{
			submit(value){
				this.$emit('confirmClick',value)
			}
		}
	};
</script>

<style lang="scss" scoped>
	.request-loading-view {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 198903060;
		background-color: rgba(0, 0, 0, 0.6);
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.loading-view {
		position: relative;
		padding: 0 26rpx;
		width: 410rpx;
		height: 198rpx;
		background: #F2F2F2;
		box-shadow: 0rpx 4rpx 27rpx 0rpx rgba(0, 0, 0, 0.17);
		border-radius: 30rpx;
	}

	.text {
		text-align: center;
		font-size: 24rpx;
		font-weight: bold;
		color: #C65450;
		line-height: 37rpx;
	}

	.footer {
		position: absolute;
		display: flex;
		align-items: center;
		justify-content: center;
		bottom: 0;
		width: 358rpx;
		height: 75rpx;
		border-top: 2rpx solid #C3C3C3;

		.btn {
			flex: 1;
			text-align: center;
			height: 28rpx;
			line-height: 28rpx;
		}

		.leftBtn {
			border-right: 2rpx solid #C3C3C3;
			color: #989898;
		}
	}
</style>
